//
//  Hongbao.m
//  盘盈贷
//
//  Created by iOS on 15/3/25.
//  Copyright (c) 2015年 Yunpeng Technologies. All rights reserved.
//

#import "Hongbao.h"

@implementation Hongbao
- (void)setValue:(id)value forUndefinedKey:(NSString *)key
{
    
}

- (id)valueForUndefinedKey:(NSString *)key
{
    return nil;
}
- (instancetype)initWithDictionary:(NSDictionary *)dic
{
    self = [super init];
    if (self) {
        [self setValuesForKeysWithDictionary:dic];
        
        self.Amount = [dic objectForKey:@"Amount"];
        self.Available = [[dic objectForKey:@"Available"] intValue];
        self.Type = [dic objectForKey:@"Type"];
        self.RangeType = [dic objectForKey:@"RangeType"];
        self.ExpireTime = [dic objectForKey:@"ExpireTime"];
        self.CreateTime = [dic objectForKey:@"CreateTime"];
        self.UsedTime = [dic objectForKey:@"UsedTime"];
    }
    return self;
}

@end
